package com.u.iot.engineering.service.impl;

import com.u.iot.engineering.entity.AlarmTask;
import com.u.iot.engineering.mapper.AlarmTaskMapper;
import com.u.iot.engineering.service.IAlarmTaskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Alex Wu
 * @since 2025-03-24
 */
@Service
public class AlarmTaskServiceImpl extends ServiceImpl<AlarmTaskMapper, AlarmTask> implements IAlarmTaskService {

    public void sendAlarmToQYWX(AlarmTask alarmTask) {
        // 获取告警信息
        String alarmInfo = alarmTask.getDesc();
        // 获取告警通知人
        String alarmNotifyUsers = alarmTask.getNotifyUsers();
        // 发送告警信息到企业微信
        // ...
    }
}
